package com.ch.dream.activity.shortstory;

import android.os.Bundle;
import android.util.Log;

import com.ch.dream.R;
import com.ch.dream.base.BaseActivity;
import com.ch.dream.logic.shortstory.PlaceInputLogic;

public class PlaceInputActivity extends BaseActivity{

	private PlaceInputLogic logic;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		try{
			setTitle(getResources().getString(R.string.back),"创造地点","提交");
			logic = new PlaceInputLogic(this);
			logic.setViews(R.layout.s_place_input);
			logic.init();
		}catch (Exception e) {
			e.printStackTrace();
			Log.e("activity",e.toString());
		}
	}
	
	@Override
	protected void handlerTitleBarEvent(int mode) {
		if(mode==LEFT_BUTTON){
			finish();
		}
		if(mode==RIGHT_BUTTON){
			logic.submit();
		}
	}

}
